package wjh.pojo;

import com.alibaba.excel.annotation.ExcelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.stereotype.Component;

import java.util.Date;

/**
 * 功能
 * 作者：lyh
 * 日期：2024/9/12 11:06
 */
@Data
@Component
public class Records {
    //表头信息
    @ExcelProperty(value = "序号",index = 0)
    private Integer id;
    @ExcelProperty(value = "病历编号",index = 1)
    private String records_number;
    @ExcelProperty(value = "医生姓名",index = 2)
    private String doctor_name;
    @ExcelProperty(value = "姓名",index = 3)
    private String user_name;
    @ExcelProperty(value = "性别",index = 4)
    private String user_sex;
    @ExcelProperty(value = "年龄",index = 5)
    private int user_age;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ExcelProperty(value = "日期",index = 6)
    private Date date;
    //医嘱
    @ExcelProperty(value = "医嘱",index = 7)
    private String orders;
    @ExcelProperty(value = "签到状态",index = 8)
    private String status;
    //删除状态
    @ExcelProperty(value = "删除状态",index = 9)
    private int deleted;
    //是否就诊
    @ExcelProperty(value = "是否就诊",index = 10)
    private String seek;
    @ExcelProperty(value = "医生id",index = 11)
    private String doctor_id;
    @ExcelProperty(value = "患者id",index = 12)
    private String patient_id;

    public Records() {
    }

    public Records(Integer id, String records_number, String doctor_name, String user_name, String user_sex, int user_age, Date date, String orders, String status, int deleted, String seek, String doctor_id, String patient_id) {
        this.id = id;
        this.records_number = records_number;
        this.doctor_name = doctor_name;
        this.user_name = user_name;
        this.user_sex = user_sex;
        this.user_age = user_age;
        this.date = date;
        this.orders = orders;
        this.status = status;
        this.deleted = deleted;
        this.seek = seek;
        this.doctor_id = doctor_id;
        this.patient_id = patient_id;
    }
}
